Skip to content

Allowing to edit activity names with correct access rights#56

Open
opitz wants to merge 1 commit intomoodleou:mainfrom
opitz:edit_activity_names
Open

Allowing to edit activity names with correct access rights#56
opitz wants to merge 1 commit intomoodleou:mainfrom
opitz:edit_activity_names

Conversation

@opitz
Copy link

@opitz opitz commented Mar 28, 2023

Amended form so a user with the correct access rights will be able not only to edit dates but the names of activities too.

@opitz opitz force-pushed the edit_activity_names branch from 631c62c to 48a7524 Compare March 28, 2023 17:07
@Syxton Syxton mentioned this pull request Jul 2, 2025
dvdcastro added a commit to lsuonline/moodle-report_editdates that referenced this pull request Mar 11, 2026
…oodleou#56)

Add an editable text field for the activity name in the edit dates form.
Only users with moodle/course:manageactivities can edit names; others see
the field as read-only (frozen).

Process name_modtype_cmid form fields in index.php, updating the module
table record directly inside the transaction. Move transaction start to
before the data-parsing loop so name updates are covered by the same
transaction as date changes.

Add lang string: activityname = 'Activity name'.

Ref: moodleou#56 (commit 48a7524)
Made-with: Cursor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant